package com.donglan.pethome.product.mapper;

import com.donglan.pethome.basic.mapper.BaseMapper;
import com.donglan.pethome.product.domain.Product;
import com.donglan.pethome.product.domain.ProductDetail;

import java.util.List;

/**
 * @Author: zhangdonghui
 * @Date: 2022/2/8 10:42
 */
public interface ProductDetailMapper extends BaseMapper<ProductDetail> {

    /*
     * 功能描述 根据服务id删除服务明细对象
     * @author zhangdonghui
     * @date 2022/2/9 10:50
     * @param productId
     * @return void
     */
    void deleteByProductId(Long productId);

    /*
     * 功能描述 根据服务对象 批量删除服务明细
     * @author zhangdonghui
     * @date 2022/2/9 11:18
     * @param products
     * @return void
     */
    void batchRemoveByProducts(List<Product> products);
}
